package cc.decat.escript.ir.statement;

import cc.decat.escript.ir.Node;
import cc.decat.escript.ir.Visitor;

public class ForStatement extends Statement {
    private Node initialization;
    private Node increment;
    private Node condition;
    private Node body;

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public Node getInitialization() {
        return initialization;
    }

    public void setInitialization(Node initialization) {
        this.initialization = initialization;
    }

    public Node getIncrement() {
        return increment;
    }

    public void setIncrement(Node increment) {
        this.increment = increment;
    }

    public Node getCondition() {
        return condition;
    }

    public void setCondition(Node condition) {
        this.condition = condition;
    }

    public Node getBody() {
        return body;
    }

    public void setBody(Node body) {
        this.body = body;
    }
}
